﻿using FluentValidation.Attributes;
using Nop.Admin.Validators.XJ;
using Nop.Web.Framework.Mvc;
using System;

namespace Nop.Admin.Models.XJ
{
	public class MaintenanceCommentListModel
	{
		public int SearchMaintenanceId { get; set; }
	}
	[Validator(typeof(MaintenanceCommentValidator))]
	public class MaintenanceCommentModel : BaseNopEntityModel
	{
		/// <summary>
		/// 维修Id
		/// </summary>
		public int MaintenanceId { get; set; }
		/// <summary>
		/// 类型
		/// <see cref="MaintenanceCommentTypeEnum"/>
		/// </summary>
		public int TypeId { get; set; }
		public string TypeName { get; set; }
		/// <summary>
		/// 父Id
		/// </summary>
		public int PId { get; set; }
		/// <summary>
		/// 评论
		/// </summary>
		public string Comment { get; set; }
		/// <summary>
		/// 星级
		/// </summary>
		public int Star { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
	}
}